<template>
    <div :class="originalSize ? '' : 'public_image'">
        <img v-lazy="src" alt="">
    </div>
</template>

<script>
export default {
    props:{
        src:{
            type: String,
            default:""
        },
        originalSize:{
            type: Boolean,
            default:false
        }
    }
}
</script>

<style lang="scss" scoped>
.public_image{
    width: 100%;
    height: 100%;
    img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
</style>